package  entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="produce")
public class Produce {
	private String rowid;
	private String name;
	private String productid;
	private String productname;
	private Integer indexnum;

	
	// Constructors

		/** default constructor */
		public Produce() {
		}

		/** minimal constructor */
		public Produce(String rowid) {
			this.rowid = rowid;
		}

		/** full constructor */
		public Produce(String rowid, String name, String productid, String productname,Integer index) {
			this.rowid = rowid;
			this.productname = productname;
			this.productid = productid;
			this.name=name;
			this.indexnum=index;
		}

		// Property accessors
		@Id
		@GeneratedValue(generator = "system-uuid")  
		@GenericGenerator(name = "system-uuid", strategy = "uuid")
		@Column(name="rowid")
		public String getRowid() {
			return this.rowid;
		}

		public void setRowid(String rowid) {
			this.rowid = rowid;
		}

		@Column(name="productid")
		public String getProductid() {
			return productid;
		}

		public void setProductid(String productid) {
			this.productid = productid;
		}
		@Column(name="productname")
		public String getProductname() {
			return productname;
		}

		public void setProductname(String productname) {
			this.productname = productname;
		}
		@Column(name="name")
		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
		@Column(name="indexnum")
		public Integer getIndexnum() {
			return indexnum;
		}

		public void setIndexnum(Integer indexnum) {
			this.indexnum = indexnum;
		}
		
		
}
